// let str = "Hello World";
// let insertText = "beautiful ";
// let index = 6;
// str = `${str.slice(0, index)}${insertText}${str.slice(index)}`;

// console.log(str)


function TagkeyCode({ text, keywords }) {
    const words = text.split(' ');
    return (
      <div>
        {words.map((word, index) => {
          if (keywords.includes(word)) {
            return <Tag color='arcoblue' bordered key={index}>{word}</Tag>;
          }
          return word + ' ';
        })}
      </div>
    );
  }